from src.util.Database import database
from src.models.User import User, UserStatus, UserRoleMapping
from src.models.Group import Group, GroupAuth, GroupUser
from src.models.Role import Role, RoleHandleMapping, RoleMenuMapping, RoleButtonMapping
from src.models.Config import DictKeyValue, SysDict, SysConfig
from src.models.Menu import Menu, SysHandle, MenuButton
from src.models.Msg import Msg
from src.models.Log import SysHandleLog
from src.models.File import FileAuth, File
from src.util.ParamUtil import formatParam, authParam

from src.entry.Entrys import Page
from datetime import datetime, timezone, UTC, timedelta
import hashlib

Group = Group()
GroupAuth = GroupAuth()
GroupUser = GroupUser()
hashlib = hashlib
Role = Role()
RoleHandle = RoleHandleMapping()
RoleMenu = RoleMenuMapping()
RoleButton = RoleButtonMapping()
Menu = Menu()
SysHandle = SysHandle()
MenuButton = MenuButton()
User = User()
UserStatus = UserStatus()
UserRole = UserRoleMapping()
Config = SysConfig()
Dict = SysDict()
DictKeyValue = DictKeyValue()
Log = SysHandleLog()
Msg = Msg()
database = database
formatParam = formatParam
authParam = authParam
Page = Page
datetime = datetime
timezone = timezone
UTC = UTC
timedelta = timedelta
FileAuth = FileAuth()
File = File()
